<!-- $Id: recommend_list.htm 14216 2008-03-10 02:27:21Z testyang $ -->
{if $full_page}
{include file="pageheader.htm"}
{insert_scripts files="../js/utils.js,listtable.js"}

<style>
    #list-table th{width:20%}
</style>

<div class="form-div">
    <form action="javascript:searchRecommend()" name="searchForm" >
        <img src="images/icon_search.gif" width="26" height="22" border="0" alt="SEARCH" />
        代理商名称：<input type="text" name="keyword" id="keyword" />
        <input type="submit" value="{$lang.button_search}" class="button" />
    </form>
</div>

<form method="post" action="" name="listForm">
    <!-- start ads list -->
    <div class="list-div" id="listDiv">
        {/if}

        <table cellspacing='1' id="list-table">
            <tr>
                <th>{$lang.recommend_name}</th>
                <th>{$lang.recommend_num}</th>
                <th>{$lang.agency_rank}</th>
                <th>{$lang.recommend_performance}</th>
                <th>{$lang.handler}</th>
            </tr>

            {foreach from=$recommend item=recommend}
            <tr>
                <td class="first-cell" ><span>{$recommend.recommend_name}</span></td>
                <td align="center"><span>{$recommend.recommend_num}</span></td>
                <td align="center"><span>{$recommend.recommend_agency_rank}级代理商</span></td>
                <td align="center"><span onclick="listTable.edit(this, 'edit_recommend', {$recommend.recommend_id})">{$recommend.recommend_performance}</span></td>
               <td align="center"><a href="users.php?act=edit&id={$recommend.recommend_id}&type=recommend_list" title="{$lang.edit}"><img src="images/icon_edit.gif" border="0" height="16" width="16" /></a></td>
            </tr>
            {/foreach}
        </table>

        <!-- 分页 -->
        <table id="page-table" cellspacing="0">
            <tr>
                <td align="right" nowrap="true">
                    {include file="page.htm"}
                </td>
            </tr>
        </table>

        {if $full_page}
    </div>
    <!-- end user recommends list -->
</form>
<script type="Text/Javascript" language="JavaScript">
    listTable.recordCount = {$record_count};
    listTable.pageCount = {$page_count};

    {foreach from=$filter item=item key=key}
    listTable.filter.{$key} = '{$item}';
    {/foreach}
    {literal}

    onload = function()
    {
        // 开始检查订单
        startCheckOrder();
    }

    /* 搜索文章 */
    function searchRecommend()
    {
        listTable.filter.keyword = Utils.trim(document.forms['searchForm'].elements['keyword'].value);
        listTable.filter.page = 1;
        listTable.loadList();
    }

    {/literal}
</script>
{include file="pagefooter.htm"}
{/if}
